// 假设 @/axios 是相对路径的别名，尝试替换为实际的相对路径，需根据实际项目结构调整
import { get, post } from '@/axios/index.js'


// 公告列表
export const getNoticeList = (data) => get('/notice/listAdmin', data)


// 删除公告
export const deleteNotice = (id) => get('/notice/delete/'+id)

//新增或修改
export const addOrUpdateNotice = (data) => post('/notice/addOrUpdate', data)

export const getNoticeDetail = (id) => get('/notice/detail/'+id)

export const updateNoticeStatus = (id,status) => post('/notice/changeStatus/'+id+'/'+status)